package com.situ.mybaits.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.junit.validator.PublicClassValidator;

import com.situ.mybatis.entity.Student;
import com.situ.mybatis.vo.SearchVO;
import com.situ.mybatis.vo.StudentSearchCondition;

public interface IStudentDao {
	//接口中的方法名与StudentMapper.xml定义的方法名、参数、返回值都必须一致
	//StudentMapper.xml命名空间必须要绑定这个接口
	public Student findById(Integer id);
	public List<Student> list();
	
	public List<Student> findByCondition(SearchVO searchVO);
	public Integer update2(Student student);
	
	public List<Student> findByIdArray(int[] idArray);
	public List<Student> findByIdList(List<Integer> idList);
	public List<Student> findByConditionChoose(SearchVO searchVO);
	
	public int getTotalCount(StudentSearchCondition condition);
	public List<Student> findPageBeanListByCondition(@Param("condition")StudentSearchCondition condition, @Param("offset")Integer offset);
}
